package com.ccsoft.atools.dao;

import com.ccsoft.atools.model.SysRole;
import com.ccsoft.atools.model.SysRolep;
import com.ccsoft.atools.model.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    int deleteByPrimaryKey(Integer iid);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer iid);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    List<SysUser> selectAll();

    SysUser selectByUserId(String userid);

    List<SysRolep> selectUserObjPermissions(String userid);

    List<SysRole> selectRoles(int iid);

    List<Map<String,Object>> getRoles(@Param("userIid") Integer userIid,@Param("userSid") String userSid);
}